SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}Amberg{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}' OR prCity = 'Amberg' OR prZip = 'Amberg' OR prStreet LIKE '{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}Amberg{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}' OR prCountry = 'Amberg') AND (prLocation LIKE '{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}Germany{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}Germany{676e2319ab7de3895431ba746bcc3be1f5c17b80fe7cb7244e664df3f4ec76ad}' OR prCountry = 'Germany')